<div class="site_section_header">
	Add/Edit a component
</div>

<div id="components_main_wrapper">
	
	<div class="ec_section">
		<div class="ecs_header"><div class="ecs_header_name">Component details</div></div>
		<div class="ecs_content">
			
			<div>
				<label for="component_name">Component name</label>
				<input type="text" name="component_name" id="component_name" value="<?php echo $oComponent->component_name; ?>" class="editor" />
                <div class="clearForm"></div>
			</div>
			
		</div>
	</div>
	
	<div class="ec_section">
		<div class="ecs_header"><div class="ecs_header_name">Component</div></div>
		<div class="ecs_content">
			<div class="site_section_subheader">Enter HTML code into the box below</div>
			<textarea id="component" name="component"><?php echo $oComponent->component; ?></textarea>
		</div>
	</div>
	
	<div style="padding: 2px;">
		<input type="submit" id="edit_component_save_button" class="green" value="Save" />
		<a href="/admin/components"><input class="red" value="Cancel" type="submit" /></a>
		<input type="hidden" id="component_id" value="<?php echo $oComponent->component_id; ?>" />
	</div>
	
</div>